//
//  ResumeItemCell.m
//  laowu
//
//  Created by 尹桥印 on 15/6/2.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "ResumeItemCell.h"

@interface ResumeItemCell()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *salaryLabel;
@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *provinceLabel;
@property (weak, nonatomic) IBOutlet UILabel *cityLabel;

@end

@implementation ResumeItemCell

+(instancetype)itemWithTableView:(UITableView *)tableView{
    static  NSString  *CellIdentiferId = @"ResumeItemCell";
    ResumeItemCell  *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentiferId];
    if (cell == nil) {
        NSArray *nibs = [[NSBundle mainBundle]loadNibNamed:@"ResumeItemCell" owner:nil options:nil];
        cell = [nibs lastObject];
    }
    return cell;
}

-(void)setItemInfo:(ResumeRes *)itemInfo{
    _itemInfo = itemInfo;
    self.nameLabel.text = itemInfo.user_name;
    self.phoneLabel.text = itemInfo.telnum;
    self.salaryLabel.text = itemInfo.salary;
    self.provinceLabel.text = itemInfo.province;
    self.cityLabel.text = itemInfo.city;
}

@end
